package zx.x.modules.app.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import zx.x.common.utils.PageUtils;
import zx.x.common.utils.Query;

import zx.x.modules.app.dao.MerchantDao;
import zx.x.modules.app.entity.MerchantEntity;
import zx.x.modules.app.service.MerchantService;
import zx.x.modules.app.vo.MerchantVo;


@Service("merchantService")
public class MerchantServiceImpl extends ServiceImpl<MerchantDao, MerchantEntity> implements MerchantService {
    @Autowired
    private MerchantDao dao;


    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MerchantEntity> page = this.page(
                new Query<MerchantEntity>().getPage(params),
                new QueryWrapper<MerchantEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<MerchantVo> selectMerchantList(MerchantVo dto) {
        return dao.selectMerchantList(dto);
    }

    @Override
    public List<MerchantVo> tjList(MerchantVo dto) {
        return dao.tjList(dto);
    }

    @Override
    public List<MerchantVo> rmList(MerchantVo dto) {
        return dao.rmList(dto);
    }

    @Override
    public List<MerchantVo> msList(MerchantVo dto) {
        return dao.msList(dto);
    }

    @Override
    public List<MerchantVo> cyList(MerchantVo dto) {
        return dao.cyList(dto);
    }

    @Override
    public MerchantVo cyObjById(MerchantVo dto) {
        return dao.cyObjById(dto);
    }


}